package com.tro.generator.entity;

import com.tro.common.util.mybatis.Page;
import java.util.ArrayList;
import java.util.List;

public class GenTableColExtExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Page page;

    public GenTableColExtExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPage(Page page) {
        this.page=page;
    }

    public Page getPage() {
        return page;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("ID like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("ID not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andColIdIsNull() {
            addCriterion("COL_ID is null");
            return (Criteria) this;
        }

        public Criteria andColIdIsNotNull() {
            addCriterion("COL_ID is not null");
            return (Criteria) this;
        }

        public Criteria andColIdEqualTo(String value) {
            addCriterion("COL_ID =", value, "colId");
            return (Criteria) this;
        }

        public Criteria andColIdNotEqualTo(String value) {
            addCriterion("COL_ID <>", value, "colId");
            return (Criteria) this;
        }

        public Criteria andColIdGreaterThan(String value) {
            addCriterion("COL_ID >", value, "colId");
            return (Criteria) this;
        }

        public Criteria andColIdGreaterThanOrEqualTo(String value) {
            addCriterion("COL_ID >=", value, "colId");
            return (Criteria) this;
        }

        public Criteria andColIdLessThan(String value) {
            addCriterion("COL_ID <", value, "colId");
            return (Criteria) this;
        }

        public Criteria andColIdLessThanOrEqualTo(String value) {
            addCriterion("COL_ID <=", value, "colId");
            return (Criteria) this;
        }

        public Criteria andColIdLike(String value) {
            addCriterion("COL_ID like", value, "colId");
            return (Criteria) this;
        }

        public Criteria andColIdNotLike(String value) {
            addCriterion("COL_ID not like", value, "colId");
            return (Criteria) this;
        }

        public Criteria andColIdIn(List<String> values) {
            addCriterion("COL_ID in", values, "colId");
            return (Criteria) this;
        }

        public Criteria andColIdNotIn(List<String> values) {
            addCriterion("COL_ID not in", values, "colId");
            return (Criteria) this;
        }

        public Criteria andColIdBetween(String value1, String value2) {
            addCriterion("COL_ID between", value1, value2, "colId");
            return (Criteria) this;
        }

        public Criteria andColIdNotBetween(String value1, String value2) {
            addCriterion("COL_ID not between", value1, value2, "colId");
            return (Criteria) this;
        }

        public Criteria andColWidthIsNull() {
            addCriterion("COL_WIDTH is null");
            return (Criteria) this;
        }

        public Criteria andColWidthIsNotNull() {
            addCriterion("COL_WIDTH is not null");
            return (Criteria) this;
        }

        public Criteria andColWidthEqualTo(Long value) {
            addCriterion("COL_WIDTH =", value, "colWidth");
            return (Criteria) this;
        }

        public Criteria andColWidthNotEqualTo(Long value) {
            addCriterion("COL_WIDTH <>", value, "colWidth");
            return (Criteria) this;
        }

        public Criteria andColWidthGreaterThan(Long value) {
            addCriterion("COL_WIDTH >", value, "colWidth");
            return (Criteria) this;
        }

        public Criteria andColWidthGreaterThanOrEqualTo(Long value) {
            addCriterion("COL_WIDTH >=", value, "colWidth");
            return (Criteria) this;
        }

        public Criteria andColWidthLessThan(Long value) {
            addCriterion("COL_WIDTH <", value, "colWidth");
            return (Criteria) this;
        }

        public Criteria andColWidthLessThanOrEqualTo(Long value) {
            addCriterion("COL_WIDTH <=", value, "colWidth");
            return (Criteria) this;
        }

        public Criteria andColWidthIn(List<Long> values) {
            addCriterion("COL_WIDTH in", values, "colWidth");
            return (Criteria) this;
        }

        public Criteria andColWidthNotIn(List<Long> values) {
            addCriterion("COL_WIDTH not in", values, "colWidth");
            return (Criteria) this;
        }

        public Criteria andColWidthBetween(Long value1, Long value2) {
            addCriterion("COL_WIDTH between", value1, value2, "colWidth");
            return (Criteria) this;
        }

        public Criteria andColWidthNotBetween(Long value1, Long value2) {
            addCriterion("COL_WIDTH not between", value1, value2, "colWidth");
            return (Criteria) this;
        }

        public Criteria andColHeightIsNull() {
            addCriterion("COL_HEIGHT is null");
            return (Criteria) this;
        }

        public Criteria andColHeightIsNotNull() {
            addCriterion("COL_HEIGHT is not null");
            return (Criteria) this;
        }

        public Criteria andColHeightEqualTo(Long value) {
            addCriterion("COL_HEIGHT =", value, "colHeight");
            return (Criteria) this;
        }

        public Criteria andColHeightNotEqualTo(Long value) {
            addCriterion("COL_HEIGHT <>", value, "colHeight");
            return (Criteria) this;
        }

        public Criteria andColHeightGreaterThan(Long value) {
            addCriterion("COL_HEIGHT >", value, "colHeight");
            return (Criteria) this;
        }

        public Criteria andColHeightGreaterThanOrEqualTo(Long value) {
            addCriterion("COL_HEIGHT >=", value, "colHeight");
            return (Criteria) this;
        }

        public Criteria andColHeightLessThan(Long value) {
            addCriterion("COL_HEIGHT <", value, "colHeight");
            return (Criteria) this;
        }

        public Criteria andColHeightLessThanOrEqualTo(Long value) {
            addCriterion("COL_HEIGHT <=", value, "colHeight");
            return (Criteria) this;
        }

        public Criteria andColHeightIn(List<Long> values) {
            addCriterion("COL_HEIGHT in", values, "colHeight");
            return (Criteria) this;
        }

        public Criteria andColHeightNotIn(List<Long> values) {
            addCriterion("COL_HEIGHT not in", values, "colHeight");
            return (Criteria) this;
        }

        public Criteria andColHeightBetween(Long value1, Long value2) {
            addCriterion("COL_HEIGHT between", value1, value2, "colHeight");
            return (Criteria) this;
        }

        public Criteria andColHeightNotBetween(Long value1, Long value2) {
            addCriterion("COL_HEIGHT not between", value1, value2, "colHeight");
            return (Criteria) this;
        }

        public Criteria andIsEditorIsNull() {
            addCriterion("IS_EDITOR is null");
            return (Criteria) this;
        }

        public Criteria andIsEditorIsNotNull() {
            addCriterion("IS_EDITOR is not null");
            return (Criteria) this;
        }

        public Criteria andIsEditorEqualTo(Long value) {
            addCriterion("IS_EDITOR =", value, "isEditor");
            return (Criteria) this;
        }

        public Criteria andIsEditorNotEqualTo(Long value) {
            addCriterion("IS_EDITOR <>", value, "isEditor");
            return (Criteria) this;
        }

        public Criteria andIsEditorGreaterThan(Long value) {
            addCriterion("IS_EDITOR >", value, "isEditor");
            return (Criteria) this;
        }

        public Criteria andIsEditorGreaterThanOrEqualTo(Long value) {
            addCriterion("IS_EDITOR >=", value, "isEditor");
            return (Criteria) this;
        }

        public Criteria andIsEditorLessThan(Long value) {
            addCriterion("IS_EDITOR <", value, "isEditor");
            return (Criteria) this;
        }

        public Criteria andIsEditorLessThanOrEqualTo(Long value) {
            addCriterion("IS_EDITOR <=", value, "isEditor");
            return (Criteria) this;
        }

        public Criteria andIsEditorIn(List<Long> values) {
            addCriterion("IS_EDITOR in", values, "isEditor");
            return (Criteria) this;
        }

        public Criteria andIsEditorNotIn(List<Long> values) {
            addCriterion("IS_EDITOR not in", values, "isEditor");
            return (Criteria) this;
        }

        public Criteria andIsEditorBetween(Long value1, Long value2) {
            addCriterion("IS_EDITOR between", value1, value2, "isEditor");
            return (Criteria) this;
        }

        public Criteria andIsEditorNotBetween(Long value1, Long value2) {
            addCriterion("IS_EDITOR not between", value1, value2, "isEditor");
            return (Criteria) this;
        }

        public Criteria andDefaultValIsNull() {
            addCriterion("DEFAULT_VAL is null");
            return (Criteria) this;
        }

        public Criteria andDefaultValIsNotNull() {
            addCriterion("DEFAULT_VAL is not null");
            return (Criteria) this;
        }

        public Criteria andDefaultValEqualTo(String value) {
            addCriterion("DEFAULT_VAL =", value, "defaultVal");
            return (Criteria) this;
        }

        public Criteria andDefaultValNotEqualTo(String value) {
            addCriterion("DEFAULT_VAL <>", value, "defaultVal");
            return (Criteria) this;
        }

        public Criteria andDefaultValGreaterThan(String value) {
            addCriterion("DEFAULT_VAL >", value, "defaultVal");
            return (Criteria) this;
        }

        public Criteria andDefaultValGreaterThanOrEqualTo(String value) {
            addCriterion("DEFAULT_VAL >=", value, "defaultVal");
            return (Criteria) this;
        }

        public Criteria andDefaultValLessThan(String value) {
            addCriterion("DEFAULT_VAL <", value, "defaultVal");
            return (Criteria) this;
        }

        public Criteria andDefaultValLessThanOrEqualTo(String value) {
            addCriterion("DEFAULT_VAL <=", value, "defaultVal");
            return (Criteria) this;
        }

        public Criteria andDefaultValLike(String value) {
            addCriterion("DEFAULT_VAL like", value, "defaultVal");
            return (Criteria) this;
        }

        public Criteria andDefaultValNotLike(String value) {
            addCriterion("DEFAULT_VAL not like", value, "defaultVal");
            return (Criteria) this;
        }

        public Criteria andDefaultValIn(List<String> values) {
            addCriterion("DEFAULT_VAL in", values, "defaultVal");
            return (Criteria) this;
        }

        public Criteria andDefaultValNotIn(List<String> values) {
            addCriterion("DEFAULT_VAL not in", values, "defaultVal");
            return (Criteria) this;
        }

        public Criteria andDefaultValBetween(String value1, String value2) {
            addCriterion("DEFAULT_VAL between", value1, value2, "defaultVal");
            return (Criteria) this;
        }

        public Criteria andDefaultValNotBetween(String value1, String value2) {
            addCriterion("DEFAULT_VAL not between", value1, value2, "defaultVal");
            return (Criteria) this;
        }

        public Criteria andGroupNameIsNull() {
            addCriterion("GROUP_NAME is null");
            return (Criteria) this;
        }

        public Criteria andGroupNameIsNotNull() {
            addCriterion("GROUP_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andGroupNameEqualTo(String value) {
            addCriterion("GROUP_NAME =", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameNotEqualTo(String value) {
            addCriterion("GROUP_NAME <>", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameGreaterThan(String value) {
            addCriterion("GROUP_NAME >", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameGreaterThanOrEqualTo(String value) {
            addCriterion("GROUP_NAME >=", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameLessThan(String value) {
            addCriterion("GROUP_NAME <", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameLessThanOrEqualTo(String value) {
            addCriterion("GROUP_NAME <=", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameLike(String value) {
            addCriterion("GROUP_NAME like", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameNotLike(String value) {
            addCriterion("GROUP_NAME not like", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameIn(List<String> values) {
            addCriterion("GROUP_NAME in", values, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameNotIn(List<String> values) {
            addCriterion("GROUP_NAME not in", values, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameBetween(String value1, String value2) {
            addCriterion("GROUP_NAME between", value1, value2, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameNotBetween(String value1, String value2) {
            addCriterion("GROUP_NAME not between", value1, value2, "groupName");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}